#include <bits/stdc++.h>
using namespace std;
int star[5000][5000];
int main() {
  int n;
  cin >> n;
  int H = (4 * n - 3);
  int L = 2 * (3 * n - 3);
  int mid = L / 2 + 1;

  for (int i = 1; i <= H; i++) {
    for (int j = 1; j <= L; j++) {
      if (i == n || i == H - n)
        star[i][j] = 1;
    }
  }
  for (int i = 1; i <= H-2*n-2; i++) {
    for (int j = 1; j <= L; j++) {
      if (i + j == 1 + mid || j - i == mid - 1)
        star[i][j] = 1;
    }
  }

  for (int i = 2*n-2; i <= H; i++) {
    for (int j = 1; j <= L; j++) {
      if (i - j == 0 || i + j == mid + H)
        star[i][j] = 1;
    }
  }

  for (int i = 1; i <= H; i++) {
    for (int j = 1; j <= L; j++) {
      cout << ((star[i][j] == 1) ? '*' : ' ');
    }
    cout << endl<<endl;
  }
  return 0;
}